package com.fch.sdlibrary.service;

import com.fch.sdlibrary.entity.Book;
import com.fch.sdlibrary.entity.User;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * @program: sdlibrarySpring
 * @description: 用户服务接口
 * @CreatedBy: fch
 * @create: 2022-05-08 20:41
 **/
public interface UserService extends UserDetailsService {
    User insertUser(User user);

//    boolean hasBorrow(String name);

    Book hasBorrow(String userId);

    boolean doBorrow(String parseInt, String name);

    boolean doRemand(String userId);
}
